import request from '@/axios';

export const qrcode = () => {
  return request({
    url: '/system/google-auth/qrcode',
    method: 'post',
    cryptoToken: true,
    cryptoData: true
  });
};

export const bind = (form) => {
  return request({
    url: '/system/google-auth/bind',
    method: 'post',
    data: form,
    cryptoToken: true,
    cryptoData: true
  });
};

export const reset = (code) => {
  return request({
    url: '/system/google-auth/reset',
    method: 'post',
    data: { code: code },
    cryptoToken: true,
    cryptoData: true
  });
};
